package com.sias.regexp;

/**
 * @author 吴文杰
 * @version 1.0
 * @createTime 2023-05-03 14:24:50
 */
public class HomeWork01 {
  public static void main(String[] args) {
    String content = "154147358@qq.com";
    // boolean matches = content.matches("^(\\w)+@([a-z.]+)([a-z.]+)");
    boolean matches = content.matches("^[\\w-]+@([a-zA-Z]+\\.)+[a-zA-Z]+");
    System.out.println(matches);


  }
}
